class CreateLogs < ActiveRecord::Migration
  def self.up
    create_table :logs do |t| 
      t.references :loggable, :polymorphic => {:default => 'Milestone'} 
      t.integer :project_id
      t.integer :user_id
      t.string :action
      
      t.datetime :created_at
    end 
  end

  def self.down
    drop_table :logs 
  end
end
